Skip to main content

DeleteMultipleObjects

Description

DeleteMultipleObjects operation supports users to delete multiple objects in the same bucket through an HTTP request.

Request Method

POST

Request Path

/apsara/route/OneRouter/DeleteMultipleObjects

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
Encoding-typeBODYstringNourlKey uses UTF-8 characters. If the Key contains control characters that are not supported by the XML 1.0 standard, you can encode the Key in the returned result by specifying the Encoding-type. optional value: url
regionIdBODYstringYesNo sample value for this parameter.region id
Content-LengthBODYstringYes151is used to describe the transmission length of the HTTP message body. OSS will verify the received message body according to this request header, and the delete operation will be performed only when the message body is correct.
versionBODYstringNo2016-01-01version of api
Content-MD5BODYstringYesIVaXz0QX0UTCXraY9Z61mQ==The Content-MD5 is a string of values generated by the MD5 algorithm. The request header is used to check whether the message content is the same as when it was sent. After the Content-MD5 request header is uploaded, OSS calculates the Content-MD5 of the message body and checks the consistency. description encrypts the DeleteMultipleObjects request message body through MD5 to obtain a 128-bit byte array. Then the byte array is encoded with base64 algorithm, and the encoded string is the Content-MD5 field content.

Return data

NameTypeSample valueDescription
DeletecontainerYesnot involved
Quietenumeration stringYestrue
ObjectcontainerYesnot involved
KeystringYestest.jpg

Example

Successful Response example

{
"Delete":"Yes",
"Quiet":"Yes",
"Object":"Yes",
"Key":"Yes"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}